<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>LBitmap</title>
		<script type="text/javascript" src="../load_lufylegend.js"></script>
	</head>
	<body style="margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;background-color:#000000;">
			<div id="legend">
			</div>
			<script>
			LInit(50, "legend", 240, 240, main);
			function main () {
				LGlobal.align = LStageAlign.MIDDLE;
				LGlobal.stageScale = LStageScaleMode.SHOW_ALL;
				LSystem.screen(LStage.FULL_SCREEN);
				
				var loader = new LLoader();
				loader.addEventListener(LEvent.COMPLETE, loadBitmapdata); 
				loader.load("face.jpg", "bitmapData");
			}
			function loadBitmapdata (event) {
				var bitmapdata = new LBitmapData(event.target);  
				var bitmap = new LBitmap(bitmapdata);
				addChild(bitmap);
			}
			</script>
	</body>
</html>